@import "./vars";

* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: $default-font;
  font-size: 16px;
}

div {
  display: block;
}

.adoc {
  margin-top: 1rem;
  @import "./asciidoc";
}

.post-layout {
  width: 100%;
  display: flex;

  .left {
    flex-basis: 15rem;
    border-right: 1px solid lightgray;
  }

  .post {
    flex-basis: 0;
    flex-grow: 1;
    padding: 1rem 2rem;
  }

  .right {
    flex-basis: 15rem;
    border-left: 1px solid lightgray;
  }

  @media (max-width: 1200px) {
    .right {
      display: none;
    }
  }

  @media (max-width: 900px) {
    .left {
      display: none;
    }

    .post {
      padding: 1rem;
    }
  }
}

.post-mobile-toc {
  display: none;
}

@media (max-width: 900px) {
  .post-mobile-toc {
    border-top: 1px solid $border-gray;
    display: block;
    padding: 1rem;
  }
}
